package com.xb.cloud.order.service.client;

import java.util.List;
import java.util.Map;

import com.xb.cloud.order.service.client.bo.OrderQueryBo;
import com.xb.cloud.order.service.client.bo.SellOrderBo;
import com.xb.cloud.order.service.client.bo.SellOrderOperationBo;
import com.xb.cloud.order.service.client.bo.SoDeliveryBo;
import com.xb.cloud.order.service.client.bo.SoSummaryBo;
import com.xb.cloud.service.client.ServiceReturnInfo;
import com.xb.cloud.user.service.client.bo.EndUserCartBo;

/**
 * 
 * @ClassName: UserSellOrderService
 * @Description:终端用户订单操作接口
 * @author: 鲜备科技
 * @date: 2018年1月5日 下午2:59:55
 * 
 * @Copyright: 2018 www.xianbeitech.com Inc. All rights reserved.
 *
 */
public interface SellOrderService {

	int countUserOrderByStatus(OrderQueryBo orderQueryBo);

	List<SoSummaryBo> getUserOrderListByStatus(OrderQueryBo orderQueryBo);

	Map<String, Integer> getOrderCountWithStatus(OrderQueryBo orderQueryBo);

	SoDeliveryBo getOrderDetailsById(Long orderId);

	SellOrderBo generateOrder(List<SellOrderBo> orderList, EndUserCartBo endUserCart);

	ServiceReturnInfo cancelOrderbyEndUser(SellOrderOperationBo operationBo) throws Exception;

	ServiceReturnInfo deleteOrderbyEndUser(SellOrderOperationBo operationBo) throws Exception;

	/**
	 * 订单支付完成后更新订单信息
	 * 
	 * @param sellOrderBo
	 * @return
	 */
	ServiceReturnInfo completeOrderPayment(SellOrderBo sellOrderBo);
}
